/**
 * 2015-12-18
 * StudyCourse.java
 * author:sherlochao
 */
package com.sherlochao.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author yinchao
 *
 */
@Entity
@Table(name = "study_course")
public class StudyCourse {
	@Id
	@Column(name = "id", nullable = false, length = 12)
	private String studyCourseId;
	
	@Column(name = "score", nullable = false, length = 32)
	private double score;
	
	@Column(name = "student_id", nullable = false, length = 12)
	private String studentId;
	
	@Column(name = "course_id", nullable = false, length = 12)
	private String courseId;

	public StudyCourse(String studyCourseId, double score, String studentId,
			String courseId) {
		super();
		this.studyCourseId = studyCourseId;
		this.score = score;
		this.studentId = studentId;
		this.courseId = courseId;
	}

	
	
	public StudyCourse() {
		super();
	}



	public String getStudyCourseId() {
		return studyCourseId;
	}

	public void setStudyCourseId(String studyCourseId) {
		this.studyCourseId = studyCourseId;
	}

	public double getScore() {
		return score;
	}

	public void setScore(double score) {
		this.score = score;
	}

	public String getStudentId() {
		return studentId;
	}

	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}

	public String getCourseId() {
		return courseId;
	}

	public void setCourseId(String courseId) {
		this.courseId = courseId;
	}

	@Override
	public String toString() {
		return "StudyCourse [studyCourseId=" + studyCourseId + ", score="
				+ score + ", studentId=" + studentId + ", courseId=" + courseId
				+ "]";
	}

	
}
